import utils from 'util/utils.js';
export default {
	inserted(el, binding, vnode) {
		if ((typeof binding.value == 'object') && binding.value.constructor == Array) {
			if (!utils.permissions.role.andRoleId(binding.value)) {
				el.parentNode.removeChild(el);
			}
		} else {
			el.parentNode.removeChild(el)
		}
	}
}
